package com.ckk.cloud.Irule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;

/**
 * @author 陈昆昆
 * @version 1.0
 * @date 2020/6/16 11:34
 */

public class MyIrule {
    @Bean
    public IRule myRule(){
        return new RandomRule();//定义为随机
    }
}
